package com.visitor.demo1.impl;

import com.visitor.demo1.Node;
import com.visitor.demo1.Visitor;

public class NodeA implements Node{
    public void accept(Visitor visitor) {
        visitor.visit(this);
    }
    public void action(){
        System.out.println("NodeA visited");
    }
}